import http from '@/utils/http';

export const postMemberCart = (data) => {
    return http({ url: '/member/cart', method: 'post', data });
};

export const getMemberCart = () => {
    return http({ url: '/member/cart' });
};


export const putMemberCart = (skuId, data) => {
    return http({ url: '/member/cart/' + skuId, method: 'put', data });
};

// 购物车全选/取消全选
export const putMemberCartSelected = (data) => {
    return http({ url: '/member/cart/selected', method: 'put', data });
};

export const deleteMemberCart = (data) => {
    return http({ url: '/member/cart', method: 'DELETE', data });
};
